package com.bill.pokerbe.model;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;
import java.util.Objects;

import static com.bill.pokerbe.model.CardType.*;

@Data
@AllArgsConstructor
public class Card {
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Card card = (Card) o;
        return CardType == card.CardType && Objects.equals(CardNum, card.CardNum);
    }

    @Override
    public int hashCode() {
        return Objects.hash(CardType, CardNum);
    }

    public CardType CardType;
    public String CardNum;

}